package com.warren.ioc;

import com.warren.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author warren
 * @create 2021-08-26 19:29
 * @Description
 */
public class UserServiceBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("拦截方法：" + method.getName());
    }

}
